<ui:composition template="template/public.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="content">
		<h:form>
			<p:panel header="Registrazione">
				<p:messages for="regResult" autoUpdate="true" />
				<h:panelGrid columns="3" id="regGrid">
					<h:outputLabel for="mail">Mail:</h:outputLabel>
					<p:inputText id="mail" value="#{utenteBean.utenteDTO.mail}" />
					<p:message for="mail" />

					<h:outputLabel for="nome">Nome:</h:outputLabel>
					<p:inputText id="nome" value="#{utenteBean.utenteDTO.nome}" />
					<p:message for="nome" />

					<h:outputLabel for="cognome">Cognome:</h:outputLabel>
					<p:inputText id="cognome" value="#{utenteBean.utenteDTO.cognome}" />
					<p:message for="cognome" />

					<h:outputLabel for="indirizzo">Indirizzo:</h:outputLabel>
					<p:inputTextarea id="indirizzo" autoResize="true"
						value="#{utenteBean.utenteDTO.indirizzo}" />
					<p:message for="indirizzo" />

					<h:outputLabel for="password">Password:</h:outputLabel>
					<p:password id="password" value="#{utenteBean.utenteDTO.password}"
						feedback="true" match="passwordconf" label="Password" />
					<p:message for="password" />

					<h:outputLabel for="passwordconf">Conferma Password:</h:outputLabel>
					<p:password id="passwordconf" label="Conferma password"
						value="#{utenteBean.utenteDTO.password}" />
				</h:panelGrid>
				<p:commandButton value="Registrati" update="regGrid"
					action="#{utenteBean.registrazione()}" />
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>
